package org.example.builder;

/**
 * @author admin
 */
public class PhoneBuilderDemo {
    public static void main(String[] args) {
        // 构建基础款手机
        SmartPhone basicPhone = SmartPhone.builder("Galaxy A", "Snapdragon 680")
                .build();
        System.out.println("基础款手机: " + basicPhone);

        // 构建旗舰款手机
        SmartPhone flagshipPhone = SmartPhone.builder("iPhone 15 Pro", "A16 Bionic")
                .screenType("OLED ProMotion")
                .ramGB(8)
                .storageGB(512)
                .hasNFC(true)
                .has5G(true)
                .osVersion("iOS 17")
                .build();
        System.out.println("旗舰款手机: " + flagshipPhone);

        // 构建游戏手机
        SmartPhone gamingPhone = SmartPhone.builder("ROG Phone 7", "Snapdragon 8 Gen 2")
                .screenType("AMOLED 165Hz")
                .ramGB(16)
                .storageGB(1024)
                .hasNFC(true)
                .has5G(true)
                .osVersion("Android 13")
                .build();
        System.out.println("游戏手机: " + gamingPhone);
    }
}